@extends('layouts.default')

@section('title', '文章发表')

@push('scripts')
<script src="{{ asset('lib/xm-select-v1.2.4/xm-select.js')}}"></script>
<script>
    layui.use(['layer','form','table','laytpl','laydate','element','laypage','upload'], function(){
        var layer = layui.layer;
        var form = layui.form;
        var table = layui.table;
        var laytpl = layui.laytpl;
        var laydate = layui.laydate;
        var element = layui.element;
        var laypage = layui.laypage;
        var upload = layui.upload;
        var xmDemo;
        var PageId = "{{request()->get('id',0)}}";
        var isbnFiles = [];
        var kwfmFiles = [];
        var kwmlFiles = [];
        var zwFiles = [];

        renderSelect();

        laydate.render({
            elem: '#publish-date'
            ,type: 'date'
        });
        laydate.render({
            elem: '#award-date'
            ,type: 'date'
        });

        //下拉框初始化
        async function renderSelect(){
            await renderDictionarySelect();
            await renderTermSelect();
            await renderParticipants();
            pageInit();
        }

        //字典下拉框数据渲染
        function renderDictionarySelect() {
            return new Promise((resolve) => {
                getDictionaryItem({'diccode': ['LEVEL']}, function (res){
                    if(res.code === 1) {
                        let data = res.data;

                        for(var k in data) {
                            let key = k.toLowerCase();
                            let d = data[k];

                            $('[data-role='+key+'List]').empty().append('<option value="">请选择</option>');
                            for (var i in d) {
                                $('[data-role='+key+'List]').append('<option value="' + d[i].optionId + '">' + d[i].selectValue + '</option>');
                            }
                        }

                        form.render();

                        resolve();
                    }
                });
            });
        }

        //学期下拉框数据渲染
        function renderTermSelect() {
            return new Promise((resolve) => {
                getTermData({},function(res){
                    if(res.code == 1){
                        $('[data-role=termList]').empty().append('<option value="">请选择</option>');
                        for(var i in res.data){
                            $('[data-role=termList]').append('<option value="'+res.data[i].id+'">'+res.data[i].title+'</option>');
                        }

                        form.render('select');

                        resolve();
                    }
                });
            });
        }

        //参与教师下拉框数据渲染
        function renderParticipants() {
            return new Promise((resolve) => {
                getParticipantsData({},function(res){
                    if(res.code == 1){
                        xmDemo = xmSelect.render({
                            el: '#pter',
                            autoRow: true,
                            filterable: true,
                            tree: {
                                show: true,
                                showFolderIcon: true,
                                showLine: true,
                                indent: 20,
                                expandedKeys:false
                            },
                            direction: 'down',
                            filterable: true,
                            height: 'auto',
                            name:'participant',
                            layVerify: 'required',
                            layVerType: 'msg',
                            layReqText:'参与教师不能为空',
                            theme: {
                                color: '#2d8cf0',
                            },
                            searchTips:'关键字搜索',
                            data: function(){
                                return res.data
                            }
                        })

                        return resolve();
                    }
                });
            });
        }

        //数据渲染
        function pageInit(){
            getActivityOne({id:PageId}, function(res) {
                if(res.code === 1) {
                    let Activity = res.data;

                    form.val('editForm', {
                        'id': PageId,
                        'is_published':Activity.is_published,
                        'data_version_id': Activity.data_version_id,
                        'name': Activity.name,
                        'begin_date': Activity.begin_date,
                        'date': Activity.date,
                        'periodical': Activity.periodical,
                        // 'is_published': Activity.is_published,
                        'is_core': Activity.is_core,
                        'is_wsjl': Activity.is_wsjl,
                        'wsjl_info': Activity.wsjl_info,
                        'other_paper': Activity.other_paper,
                        'is_awarded': Activity.is_awarded,
                        'award_from': Activity.award_from,
                        'level': Activity.level ? Activity.level_array[0].optionId : '',
                        'activity_category': Activity.activity_category
                    });
                    if(Activity.is_published == 2){
                        $('.is-fb').hide();
                        $('.is-hxqk').hide();
                    }
                    if(Activity.is_wsjl == 1) {
                        $("#wsjl-label").html('<i class="redstar">*</i>交流链接：');
                        // $("#wsjl-inline").removeClass('layui-hide');
                    }
                    if(Activity.is_core == 1) {
                        // $("#periodical-label").html('<i class="redstar">*</i>刊物名称：');
                    }else{
                        $('.is-hxqk').hide();
                    }
                    if(Activity.is_awarded == 1) {
                        $("#award-label").html('<i class="redstar">*</i>获奖时间：');
                        $("#award-label1").html('<i class="redstar">*</i>级别：');
                        $("#award-label2").html('<i class="redstar">*</i>颁奖机构：');
                        $(".award-link").removeClass("layui-hide");
                    }

                    //参与教师
                    xmDemo.setValue(Activity.participants_users.pant);
                    //文件
                    if(Activity.proof_material_array.length){
                        layui.each(Activity.proof_material_array, function(i, d) {
                            if(d.field == 'kwfm') {
                                kwfmFiles.push(d.file_origin);

                                $('#kwfm-file').val(JSON.stringify(kwfmFiles));
                                $('#kwfm-uploader').parent().find('.file-show').html('');
                                for(i in kwfmFiles) {
                                    if(kwfmFiles[i]) {
                                        let fsHtml = '<div class="file-item"><span class="file-name">'+kwfmFiles[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 1)"></span></div>';
                                        $('#kwfm-uploader').parent().find('.file-show').append(fsHtml);
                                    }
                                }
                            } else if(d.field == 'kwml') {
                                kwmlFiles.push(d.file_origin);

                                $('#kwml-file').val(JSON.stringify(kwmlFiles));
                                $('#kwml-uploader').parent().find('.file-show').html('');
                                for(i in kwmlFiles) {
                                    if(kwmlFiles[i]) {
                                        let fsHtml = '<div class="file-item"><span class="file-name">'+kwmlFiles[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 2)"></span></div>';
                                        $('#kwml-uploader').parent().find('.file-show').append(fsHtml);
                                    }
                                }
                            } else if(d.field == 'zw') {
                                zwFiles.push(d.file_origin);

                                $('#zw-file').val(JSON.stringify(zwFiles));
                                $('#zw-uploader').parent().find('.file-show').html('');
                                for(i in zwFiles) {
                                    if(!zwFiles[i]) return;

                                    let fsHtml = '<div class="file-item"><span class="file-name">'+zwFiles[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 3)"></span></div>';
                                    $('#zw-uploader').parent().find('.file-show').append(fsHtml);
                                }
                            } else if(d.field == 'isbn') {
                                isbnFiles.push(d.file_origin);

                                $('#isbn-file').val(JSON.stringify(isbnFiles));
                                $('#isbn-uploader').parent().find('.file-show').html('');
                                for(i in isbnFiles) {
                                    if(!isbnFiles[i]) return;

                                    let fsHtml = '<div class="file-item"><span class="file-name">'+isbnFiles[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 4)"></span></div>';
                                    $('#isbn-uploader').parent().find('.file-show').append(fsHtml);
                                }
                            }
                        });
                    }
                } else {
                    layer.msg('无数据记录', {time: 2000, icon: 5});
                }
            });
        }

        window.fileDelete = function (fk, ft) {
            if(ft == 1) {
                delete kwfmFiles[fk];
                let files = kwfmFiles;

                $('#kwfm-file').val(JSON.stringify(kwfmFiles));
                $('#kwfm-uploader').parent().find('.file-show').html('');
                for(i in files) {
                    if(files[i]) {
                        let fsHtml = '<div class="file-item"><span class="file-name">'+files[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 1)"></span></div>';
                        $('#kwfm-uploader').parent().find('.file-show').append(fsHtml);
                    }
                }
            } else if(ft == 2) {
                delete kwmlFiles[fk];
                let files = kwmlFiles;

                $('#kwml-file').val(JSON.stringify(kwmlFiles));
                $('#kwml-uploader').parent().find('.file-show').html('');
                for(i in kwmlFiles) {
                    if(files[i]) {
                        let fsHtml = '<div class="file-item"><span class="file-name">'+files[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 2)"></span></div>';
                        $('#kwml-uploader').parent().find('.file-show').append(fsHtml);
                    }
                }
            } else if(ft == 3) {
                delete zwFiles[fk];
                let files = kjFiles;

                $('#zw-file').val(JSON.stringify(zwFiles));
                $('#zw-uploader').parent().find('.file-show').html('');
                for(i in zwFiles) {
                    if(!files[i]) return;

                    let fsHtml = '<div class="file-item"><span class="file-name">'+files[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 3)"></span></div>';
                    $('#zw-uploader').parent().find('.file-show').append(fsHtml);
                }
            } else if(ft == 4) {
                delete isbnFiles[fk];
                let files = isbnFiles;

                $('#isbn-file').val(JSON.stringify(isbnFiles));
                $('#isbn-uploader').parent().find('.file-show').html('');
                for(i in isbnFiles) {
                    if(!files[i]) return;

                    let fsHtml = '<div class="file-item"><span class="file-name">'+files[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 3)"></span></div>';
                    $('#isbn-uploader').parent().find('.file-show').append(fsHtml);
                }
            }
        }

        //文件上传
        upload.render({
            elem: '#kwfm-uploader'
            ,url: "{{route('uploads.upload')}}" //此处配置你自己的上传接口即可
            ,accept: 'file' //普通文件
            ,multiple: true
            ,allDone: function(obj){ //当文件全部被提交后，才触发
                if(obj.total == obj.successful) {
                    layer.msg('上传成功');
                } else {
                    layer.msg(obj.failed + '个文件上传失败！');
                }
            }
            ,done: function(res){
                kwfmFiles.push(res.data);
                $('#kwfm-file').val(JSON.stringify(kwfmFiles));

                $('#kwfm-uploader').parent().find('.file-show').html('');
                for(i in kwfmFiles) {
                    if(kwfmFiles[i]) {
                        let fsHtml = '<div class="file-item"><span class="file-name">'+kwfmFiles[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 1)"></span></div>';
                        $('#kwfm-uploader').parent().find('.file-show').append(fsHtml);
                    }
                }
            }
            ,error: function(index, upload){ //错误回调
                console.log(index);
            }
        });
        upload.render({
            elem: '#kwml-uploader'
            ,url: "{{route('uploads.upload')}}" //此处配置你自己的上传接口即可
            ,accept: 'file' //普通文件
            ,multiple: true
            ,allDone: function(obj){ //当文件全部被提交后，才触发
                if(obj.total == obj.successful) {
                    layer.msg('上传成功');
                } else {
                    layer.msg(obj.failed + '个文件上传失败！');
                }
            }
            ,done: function(res){
                kwmlFiles.push(res.data);
                $('#kwml-file').val(JSON.stringify(kwmlFiles));

                $('#kwml-uploader').parent().find('.file-show').html('');
                for(i in kwmlFiles) {
                    if(kwmlFiles[i]) {
                        let fsHtml = '<div class="file-item"><span class="file-name">'+kwmlFiles[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 2)"></span></div>';
                        $('#kwml-uploader').parent().find('.file-show').append(fsHtml);
                    }
                }
            }
            ,error: function(index, upload){ //错误回调
                console.log(index);
            }
        });
        upload.render({
            elem: '#zw-uploader'
            ,url: "{{route('uploads.upload')}}" //此处配置你自己的上传接口即可
            ,accept: 'file' //普通文件
            ,multiple: true
            ,allDone: function(obj){ //当文件全部被提交后，才触发
                if(obj.total == obj.successful) {
                    layer.msg('上传成功');
                } else {
                    layer.msg(obj.failed + '个文件上传失败！');
                }
            }
            ,done: function(res){
                zwFiles.push(res.data);
                $('#zw-file').val(JSON.stringify(zwFiles));

                $('#zw-uploader').parent().find('.file-show').html('');
                for(i in zwFiles) {
                    if(zwFiles[i]) {
                        let fsHtml = '<div class="file-item"><span class="file-name">'+zwFiles[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 2)"></span></div>';
                        $('#zw-uploader').parent().find('.file-show').append(fsHtml);
                    }
                }
            }
            ,error: function(index, upload){ //错误回调
                console.log(index);
            }
        });
        upload.render({
            elem: '#isbn-uploader'
            ,url: "{{route('uploads.upload')}}" //此处配置你自己的上传接口即可
            ,accept: 'file' //普通文件
            ,multiple: true
            ,choose: function(obj){
                //上传loading
                showloading(true);
            }
            ,allDone: function(obj){ //当文件全部被提交后，才触发
                showloading(false);
                if(obj.total == obj.successful) {
                    layer.msg('上传成功');
                } else {
                    layer.msg(obj.failed + '个文件上传失败！');
                }
            }
            ,done: function(res){
                isbnFiles.push(res.data);
                $('#isbn-file').val(JSON.stringify(isbnFiles));

                $('#isbn-uploader').parent().find('.file-show').html('');
                for(i in isbnFiles) {
                    if(isbnFiles[i]) {
                        let fsHtml = '<div class="file-item"><span class="file-name">'+isbnFiles[i].file_name+'</span><span class="layui-icon layui-icon-close-fill" onClick="fileDelete('+i+', 4)"></span></div>';
                        $('#isbn-uploader').parent().find('.file-show').append(fsHtml);
                    }
                }
            }
            ,error: function(index, upload){ //错误回调
                console.log(index);
            }
        });

        //提交
        form.on('submit(sub)', function(data){
            let result = '';
            let d = data.field;
            d.participants = xmDemo.getValue('nameStr');
            d.participant_ids = xmDemo.getValue('value');
            d.do_task = 1;

            result = verifyForm(d);
            if(d.is_published == 1){
                if(d.is_core === undefined){layer.msg('请选择核心期刊', {icon: 5,shift : 6}); return false;}
                if(d.is_awarded === undefined){layer.msg('请选择是否获奖', {icon: 5,shift : 6}); return false;}
            }
            if(d.is_core == 1){
                if(d.is_core === undefined){layer.msg('请选择核心期刊', {icon: 5,shift : 6}); return false;}
                if($('.periodical').val() == ''){layer.msg('请选择刊物名称', {icon: 5,shift : 6});return false;} //刊物名称
            }
            if(d.is_awards == 1){
                if(!form.validate('#awards-date')){return false;} //获奖时间
                if(!form.validate('.award_from')){return false;} //颁奖机构
                if(d.level == ''){
                    layer.msg("级别不能为空", {icon: 5, shift: 6});
                    return false;
                }
            }
            if(result) {
                layer.msg(result, {icon: 5,shift : 6});
                return false;
            }

            editActivity(d, function(res){
                if(res.code == '1'){
                    layer.msg(res.msg,{icon: 6,time: 1000},function(){
                        window.history.back();
                    });
                }else{
                    layer.msg(res.msg, {icon: 5,shift : 6});
                }
            });

            return false;
        });

        // 表单联动
        form.on('radio(isPublished)', function(data){
            // console.log(data.elem); //得到radio原始DOM对象
            // console.log(data.value); //被点击的radio的value值

            if(data.value == 1) {
                //$("#publish-label").html('<i class="redstar">*</i>发表日期：');
                $('.is-fb').show();
            } else {
                form.val("editForm", {
                    'begin_date': "",
                    'is_core': 0,
                    'is_awarded': "",
                    'periodical': "",
                    'date': "",
                    'level':"",
                    'award_from': ""
                });
                //$("#publish-label").html('发表日期：');
                $('.is-fb').hide();
                $(".award-link").addClass("layui-hide");
                form.render();
            }
        });
        form.on('radio(isCore)', function(data){
            if(data.value == 1) {
                $('.is-hxqk').show();
            } else {
                form.val("editForm", {
                    'periodical': ""
                });
                form.render();
                $('.is-hxqk').hide();
            }
        });
        form.on('radio(isAwarded)', function(data){
            if(data.value == 1) {
                $("#award-label").html('<i class="redstar">*</i>获奖时间：');
                $("#award-label1").html('<i class="redstar">*</i>级别：');
                $("#award-label2").html('<i class="redstar">*</i>颁奖机构：');
                $(".award-link").removeClass("layui-hide");
            } else {
                $("#award-label").html('获奖时间：');
                $("#award-label1").html('级别：');
                $("#award-label2").html('颁奖机构：');
                $(".award-link").addClass("layui-hide");
            }
        });

        // 表单验证
        function verifyForm(d) {
            let msg = '';
            if(kwfmFiles.length <= 0) {
                msg = '刊物封面需要上传！';
            }
            if(d.is_awarded == 1 && !d.date) {
                msg = '获奖时间不能为空！';
            }
            if(d.is_awarded == 1 && !d.level) {
                msg = '级别不能为空！';
            }
            if(d.is_awarded == 1 && !d.award_from) {
                msg = '颁奖机构不能为空！';
            }

            return msg;
        }

        //自定义验证规则
        form.verify({
            otherReq: function(value,item){
                var $ = layui.$;
                var verifyName=$(item).attr('name')
                , verifyType=$(item).attr('type')
                ,formElem=$(item).parents('.layui-form')//获取当前所在的form元素，如果存在的话
                ,verifyElem=formElem.find('input[name='+verifyName+']')//获取需要校验的元素
                ,isTrue= verifyElem.is(':checked')//是否命中校验
                ,focusElem = verifyElem.next().find('i.layui-icon');//焦点元素
                if(!isTrue || !value){
                    //定位焦点
                    focusElem.css(verifyType=='radio'?{"color":"#FF5722"}:{"border-color":"#FF5722"});
                    //对非输入框设置焦点
                    focusElem.first().attr("tabIndex","1").css("outline","0").blur(function() {
                        focusElem.css(verifyType=='radio'?{"color":""}:{"border-color":""});
                    }).focus();
                    return '必填项不能为空';
                }
            }
        });
    });
</script>
@endpush

@section('content')
<style>
    .opt-panel{padding: 10px;}
    .panel-title h3{margin-bottom: 20px;font-weight: 800;}

    .opt-form{padding: 20px 5px;}
    .opt-area{display: flex;flex-direction: row-reverse;padding: 10px 20px;margin-bottom: 20px;}
    .opt-area button, .back-btn{margin-left: 10px;}
</style>

<div class="layui-row">
    <div class="layui-panel opt-panel">
        <form class="layui-form opt-form" action="" id="edit-form" lay-filter="editForm">
            <div class="layui-row">
                <div class="panel-title">
                    <h3>文章发表 - 编辑</h3>
                </div>
                <div class="layuik-form-item layuik-columns-two">
                    <div class="layuik-inline">
                        <label class="layuik-form-label"><i class="redstar">*</i>学年学期：</label>
                        <div class="layuik-input-inline">
                            <select class="data-version-id" name="data_version_id" lay-filter="termList" data-role="termList" lay-verify="required" lay-reqText="不能为空"></select>
                        </div>
                    </div>
                    <div class="layuik-inline">
                        <label class="layuik-form-label"><i class="redstar">*</i>论文名称：</label>
                        <div class="layuik-input-inline">
                            <input type="text" name="name" required lay-verify="required" placeholder="请输入" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layuik-form-item layuik-columns-two">
                    <div class="layuik-inline">
                        <label class="layuik-form-label"><i class="redstar">*</i>已发表：</label>
                        <div class="layuik-input-inline">
                            <input type="radio" lay-filter="isPublished" name="is_published" title="是" value="1" class="layui-radio" lay-verify="otherReq">
                            <input type="radio" lay-filter="isPublished" name="is_published" title="否" value="2" class="layui-radio" lay-verify="otherReq">
                        </div>
                    </div>
                    <div class="layuik-inline is-fb">
                        <label class="layuik-form-label" id="publish-label">发表日期：</label>
                        <div class="layuik-input-inline">
                            <input type="text" name="begin_date" id="publish-date" placeholder="请选择" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layuik-form-item layuik-columns-two is-fb">
                    <div class="layuik-inline">
                        <label class="layuik-form-label"><i class="redstar">*</i>核心期刊：</label>
                        <div class="layuik-input-inline">
                            <input type="radio" lay-filter="isCore" name="is_core" title="是" value="1"  class="layui-radio is_core">
                            <input type="radio" lay-filter="isCore" name="is_core" title="否" value="2"  class="layui-radio is_core">
                        </div>
                    </div>
                    <div class="layuik-inline is-hxqk">
                        <label class="layuik-form-label" id="periodical-label"><i class="redstar">*</i>刊物名称：</label>
                        <div class="layuik-input-inline">
                            <input type="text" name="periodical"  placeholder="请输入" autocomplete="off" class="layui-input periodical">
                        </div>
                    </div>
                </div>

                <div class="layuik-form-item layuik-columns-two is-fb">
                    <div class="layuik-inline">
                        <label class="layuik-form-label"><i class="redstar">*</i>已获奖：</label>
                        <div class="layuik-input-inline">
                            <input type="radio" lay-filter="isAwarded" name="is_awarded" title="是" value="1"  class="layui-radio">
                            <input type="radio" lay-filter="isAwarded" name="is_awarded" title="否" value="2"  class="layui-radio">
                        </div>
                    </div>
                    <div class="layuik-inline award-link layui-hide">
                        <label class="layuik-form-label" id="award-label">获奖时间：</label>
                        <div class="layuik-input-inline">
                            <input type="text" name="date" id="award-date" placeholder="请选择" lay-reqText="不能为空" autocomplete="off" class="layui-input">
                        </div>
                    </div>
                </div>
                <div class="layuik-form-item layuik-columns-two award-link layui-hide">
                    <div class="layuik-inline">
                        <label class="layuik-form-label" id="award-label1">级别：</label>
                        <div class="layuik-input-inline">
                            <select name="level" lay-filter="levelList" data-role="levelList"></select>
                        </div>
                    </div>
                    <div class="layuik-inline">
                        <label class="layuik-form-label" id="award-label2">颁奖机构：</label>
                        <div class="layuik-input-inline">
                            <input type="text" name="award_from"  placeholder="请输入" autocomplete="off" class="layui-input award_from">
                        </div>
                    </div>
                </div>
                <div class="layuik-form-item layuik-columns-two">
                    <div class="layuik-inline">
                        <label class="layuik-form-label"><i class="redstar">*</i>类别：</label>
                        <div class="layuik-input-inline">
                            <input type="radio" name="activity_category" value="EW_PAPER_PUBLISH_TABLE" title="教育" lay-verify="otherReq" class="layui-radio">
                            <input type="radio" name="activity_category" value="TEARRESEARCH_PUBLISH_TABLE" title="教学" lay-verify="otherReq" class="layui-radio">
                        </div>
                    </div>
                </div>
                <div class="layuik-form-item">
                    <div class="layuik-inline">
                        <label class="layuik-form-label"><i class="redstar">*</i>参与教师：</label>
                        <div class="layuik-input-inline">
                            <div type="text" id="pter" class="xm-select-demo"></div>
                        </div>
                    </div>
                </div>
                <div class="layuik-form-item layuik-columns-two">
                    <div class="layuik-inline">
                        <label class="layuik-form-label"><i class="redstar">*</i>证明材料：</label>
                        <div class="layuik-input-inline layuik-upload">
                            <button type="button" class="layui-btn layui-btn-normal" id="kwfm-uploader"><i class="layui-icon"></i>上传文件</button>
                            <div class="file-show"></div>
                            <input style="display:none" type="text" id="kwfm-file" name="files[kwfm]" value="">
                        </div>
                    </div>
                </div>

            </div>

            <div class="layui-row">
                <div class="opt-area">
                    <a href="javascript:history.go(-1);" class="layui-btn layui-btn-primary back-btn">返回</a>
                    <button class="layui-btn layui-btn-normal" lay-submit lay-filter="sub">提交</button>
                    <input type="hidden" name="pubications_publish_type" value="128">
                    <input type="hidden" name="id" value="">
                </div>
            </div>
        </form>
    </div>
</div>

@endsection
